package stack;

import java.util.Stack;

public class Test {
    public static void main(String[] args) {

        MyStack mystack = new MyStack();
        mystack.push(1);
        mystack.push(2);
        mystack.push(3);
        mystack.push(4);
        System.out.println(mystack.peek());
        mystack.pop();
        mystack.display();
    }

}
